package edu.java.homework.hw10.stack.exceptions;

public class StackEmptyException extends RuntimeException {
    public StackEmptyException() {
	super();
    }

    public StackEmptyException(String message) {
	super(message);
    }

    public StackEmptyException(String message, Throwable throwable) {
	super(message, throwable);
    }

    @Override
    public String getMessage(){
	return super.getMessage() + "The stack is empty. " +
			"It is impossible to get an element from the stack.";
    }
}
